var user={}
	checklogin();
	function checklogin(){
		AJAX.get(
		"http://localhost:8080/checklogin",
		{},
		function(evt){
			var result=evt;
			if(result.code=="200"){
				user=evt.data;
			}else{
				window.location.href="./index"
			}
		}
		)
	}